#pragma once

#include "InterServiceID.h"

class LayoutService : public ILayoutService
{
public:
	BEGIN_DEFINE_CLASS(CLSID_LayoutService)
		DEFINE_INTERFACE_ENTRY(ILayoutService)
	END_DEFINE_CLASS()

	LayoutService();
	virtual ~LayoutService();

	virtual Points LayoutPages(IObject* root,Graphics* graphics,const Size& clientSize);
};

AUTO_REGISTER_CLASSMAP_ENTRY(LayoutService)
AUTO_REGISTER_SERVICE_PROVIDER(LAYOUT_SERVICE,LayoutService)